package twitter.entity;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

import twitter4j.HashtagEntity;
import twitter4j.UserMentionEntity;

public class Tweet {

	private String id;

	private Date date;

	private ArrayList<String> hashtags = new ArrayList<String>();

	private String text;

	private int retweet_count;

	// private ArrayList<Url> urls = new ArrayList<Url>();

	private String URL;

	private String sentiment;

	private String content;

	private int favorite_count;

	public Date getDate() {
		return date;
	}

	public void setDate(Date date2) {
		this.date = date2;
	}

	public String getSentiment() {
		return sentiment;
	}

	public void setSentiment(String sentiment) {
		this.sentiment = sentiment;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public ArrayList<String> getHashtags() {
		return hashtags;
	}

	public void setHashtags(HashtagEntity[] hashtagEntities) {
		for (int i = 0; i < hashtagEntities.length; i++) {
			hashtags.add(hashtagEntities[i].getText());
		}
	}

	public void setHashtags(List<String> hashtags) {
		this.hashtags = (ArrayList<String>) hashtags;
	}

	public void setUser_mentions(UserMentionEntity[] userMentionEntities) {
		for (int i = 0; i < userMentionEntities.length; i++) {
			hashtags.add(userMentionEntities[i].getName());
		}
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getRetweet_count() {
		return retweet_count;
	}

	public void setRetweet_count(int retweet_count) {
		this.retweet_count = retweet_count;
	}

	public int getFavorite_count() {
		return favorite_count;
	}

	public void setFavorite_count(int favoriteCount) {
		this.favorite_count = favoriteCount;
	}

	public String getURL() {
		return URL;
	}

	public void setURL(String uRL) {
		URL = uRL;
	}

	// public ArrayList<Url> getUrls() {
	// return urls;
	// }
	// public void setUrls(URLEntity[] urlEntities) {
	// for (int i = 0; i< urlEntities.length; i++){
	// hashtags.add(urlEntities[i].getURL());
	// }
	// }

}
